using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Linq; 

namespace SQLMgtConsole
{
    public partial class frmDependency : DevExpress.XtraEditors.XtraForm
    {
        public frmDependency()
        {
            InitializeComponent();
        }

        public frmDependency(String strSysObject, DataTable dtDepend)
        {
            InitializeComponent();

            this.Text = this.Text + "[" + strSysObject + "]";
            gridControl1.DataSource = dtDepend; 
            

        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmDependency_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Escape)
                this.Close(); 
        }
    }
}